﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<mediatheque.Areas.Admin.Models.Oeuvres>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create</h2>
    <form class="form-horizontal"  action="/Admin/Oeuvres/Create" method="post">
        <div class="control-group">
            <label class="control-label">Type</label>
            <div class="controls">
                <select name="type">
                    <option value="cd">CD</option>
                    <option value="dvd">DVD</option>
                    <option value="livre">Livre</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Titre</label>
            <div class="controls">
                <input type="text" name="titre" />
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Auteur</label>
            <div class="controls">
                <select name="author">
                <% foreach (var item in Model.getAuthor()) { %>
                <option value="<%= item.id %>"><%= item.username %></option>
                <% } %> 
                </select>
            </div>
            <div class="controls">
                <button class="btn btn-primary" type="submit" name="save"><i class="icon-hdd"></i> Enregistrer</button>
            </div>
        </div>
    </form>
    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

